package co.edu.unal.geditor.model;

import java.awt.Color;
import java.awt.Point;

import co.edu.unal.geditor.view.ElementView;
import co.edu.unal.geditor.view.LineGraphView;

public class LineElement extends GeometricGraphElement {
	private static final long serialVersionUID = 1L;

	// method overloading + less restrictive access modifier
	// legal: private -> protected -> public
	// illegal: public -> protected -> private
	public LineElement(Point pUL, Point pBD) {
		super(pUL, pBD);
	}

	// method overloading
	protected LineElement(Point pUL, Point pBD, Color color) {
		super(pUL, pBD, color);
	}

	// method overloading
	protected LineElement(Point pUL, Point pBD, Color color, int lineWidth) {
		super(pUL, pBD, color, lineWidth);
	}

	@Override
	protected ElementView createView() {
		// start with graphics view by default

		return new LineGraphView(this);
	}

	@Override
	protected boolean normalizeBoundBox() {
		// LineElement is different
		return false;
		
	}

}
